<template>
  <div class="wrapper">
    <div class="bg"></div>
    <img src="../../images/set.png" alt="" class="set" />
    <div class="content">
      <img src="../../images/head.png" alt="" class="head" />
      <div class="name">
        热心市民李先生
        <div class="grade">
          <img src="../../images/start.png" alt="" class="start" />
          16
        </div>
      </div>
      <div class="id">ID: 1069643013</div>
      <div class="container">
        <div class="container_item">
          <div class="letter">红包</div>
          <div class="num">218</div>
        </div>
        <div class="container_item">
          <div class="letter">优惠券</div>
          <div class="num">12张</div>
        </div>
        <div class="container_item">
          <div class="letter">鲜豆</div>
          <div class="num">88</div>
        </div>
        <div class="container_item">
          <div class="letter">白条</div>
          <div class="num">1000</div>
        </div>
      </div>
    </div>
    <div class="box">
      <div class="box_item">
        <img src="../../images/money.png" alt="" class="box_item_img" />
        <div class="box_item_div">我的钱包</div>
        <span class="box_item_span iconfont">&#xe6f2;</span>
      </div>
      <router-link to="/myAddress">
        <div class="box_item">
          <img src="../../images/address.png" alt="" class="box_item_img" />
          <div class="box_item_div">我的地址</div>
          <span class="box_item_span iconfont">&#xe6f2;</span>
        </div>
      </router-link>
      <div class="box_item">
        <img src="../../images/help.png" alt="" class="box_item_img" />
        <div class="box_item_div">客服与帮助</div>
        <span class="box_item_span iconfont">&#xe6f2;</span>
      </div>
    </div>
  </div>
  <Docker :currentIndex="3" />
</template>

<script>
import Docker from "../../components/Docker";
export default {
  name: "My",
  components: { Docker },
  setup() {},
};
</script>

<style lang="scss" scoped>
.wrapper {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0.5rem;
  right: 0;
  background: linear-gradient(239deg, #3a6ff3 0%, #50c7fb 100%);
  width: 100%;
  height: 2.1rem;
  border-radius: 0 0 0.4rem 0.4rem;

  .set {
    position: absolute;
    width: 0.22rem;
    height: 0.22rem;
    right: 0.3rem;
    top: 0.48rem;
  }
  .content {
    box-sizing: border-box;
    margin: 0 0.18rem 0 0.18rem;
    position: relative;
    width: 3.39rem;
    height: 2.03rem;
    background: #ffffff;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-top: 1rem;
    .head {
      margin: 0;
      position: relative;
      width: 0.94rem;
      height: 0.94rem;
      top: -0.47rem;
      left: 1.22rem;
      border-radius: 50%;
    }
    .name {
      position: relative;
      top: -0.4rem;
      width: 100%;
      height: 0.36rem;
      line-height: 0.36rem;
      font-family: PingFangSC-Regular;
      font-size: 0.24rem;
      color: #262628;
      letter-spacing: 0.0019rem;
      text-align: center;
      margin: 0;
    }
    .grade {
      position: absolute;
      top: 0.09rem;
      right: 0.4rem;
      display: inline-block;
      width: 0.32rem;
      height: 0.18rem;
      font-family: Helvetica;
      font-size: 0.12rem;
      color: #ffffff;
      // text-align: center;
      line-height: 0.18rem;
      background-image: linear-gradient(180deg, #bee700 0%, #8aca00 100%);
      border-radius: 100px;

      .start {
        margin-right: 0.1rem;
        position: absolute;
        left: 0.02rem;
        top: 0.04rem;
        width: 0.1rem;
        height: 0.1rem;
      }
    }
    .id {
      position: relative;
      top: -0.3rem;
      width: 100%;
      font-family: PingFangSC-Regular;
      font-size: 14px;
      color: #c1c0c9;
      text-align: center;
    }
    .container {
      position: absolute;
      bottom: 0;
      display: flex;
      width: 100%;
      height: 0.72rem;
      border-top: 1px solid #fff;
      // justify-box: space-around;

      &_item {
        
        padding-top: 0.1rem;
        flex: 1;
        .letter {
          font-size: 12px;
          color: #c1c0c9;
          text-align: center;
          line-height: 0.2rem;
        }
        .num {
          font-size: 20px;
          color: #262628;
          text-align: center;
          line-height: 0.3rem;
        }
      }
    }
  }
  .box {
    box-sizing: border-box;
    padding: 0 0.2rem 0 0.2rem;
    margin: 0.2rem 0.18rem 0 0.18rem;
    width: 3.39rem;
    height: 1.5rem;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background-color: #fff;
    a{
      text-decoration: none;
    }
    &_item {
      display: flex;
      width: 100%;
      height: 0.5rem;
      line-height: 0.5rem;
      align-items: center;
      &_img {
        width: 0.22rem;
        height: 0.22rem;
        margin-right: 0.18rem;
      }
      &_div {
        font-size: 0.14rem;
        color: #262626;
        flex: 1;
      }
      &_span {
        font-size: 0.14rem;
        flood-color: #c2c4ca;
        transform: rotate(180deg);
      }
    }
  }
}
</style>1